const rightNum = 0
const topicIdArr = [{}]

const accuracy =
  parseFloat("" + (rightNum / topicIdArr.length) * 100).toFixed(2) + "%";

console.log(accuracy);